package oj;

import java.util.Scanner;

public class Day42F {
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        while(sc.hasNext()){
            String str=sc.nextLine();
            for(int i=0;i<str.length();i++){
                if(str.charAt(i)>='0' && str.charAt(i)<='9'){
                    System.out.print(str.charAt(i));
                }
            }
            System.out.println();
        }
    }
}
